<?php echo $fxn->showAdminUpdate($pages->pageid, $pages->cattype, $pages->categoryid); ?>
<div class="post">
    <?php
    if ($site->SHOW_LOCATIONS == "yes") {
        $cquery->whereWeAre($pages->categoryid, $pages->cattype, $pages->title, $pages->pageid, $pages->directlink);
    }
    ?>
    <div id="page_actions" style="clear:both">
        <ul>
            <li><a href="#" class="emailpage email" title="Email">Email</a></li>
            <li><a href="#" class="print" title="Print">Print</a></li>
            <li> <a href="#" class="share" title="Share">Share </a></li>
        </ul>
    </div>
    <?php
    echo "<div class='.printable'>
            <h1 class='ptitle '>" . $pages->title . "</h1>";

    include 'pages/PageResources.php';

    $pages->getExtraDetails();

    echo $pages->text;
    echo $pages->tagList;
    if ($pages->listType == 11) {
        include 'pages/SiteMap.php';
    }
    echo "</div>";
    ?>

    <?php
    $pages->getIncludedPages();

    if ($site->SHOW_PAGE_CLICKS == "yes") {
        echo "<h3 class='clicks'>Page Clicks " . $pages->pagehits . "</h3>";
    }

    if ($pages->allowComment == "yes" && strlen($pages->text) > 5)
        include 'component/comments/comments.php';
    include 'pages/Category.php';
    include 'pages/SubPages.php';
    include 'pages/RelatedPages.php';
    ?>
    <div class="clear"> </div>
</div>